package com.cangshi.permission.filter;


import com.cangshi.permission.exception.PermissionException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by Eoly on 2017/4/5.
 */
public class PermissionDefaultFilter extends PermissionFilter{

    protected void doWhileFail(HttpServletRequest request, HttpServletResponse response, FilterChain chain, PermissionException e) throws IOException, ServletException {

    }

    protected void doWhileSuccess(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {

        chain.doFilter(request,response);
    }
}
